package com.bilibili.ifelse;

import java.util.Scanner;

public class ifelse {
    public static void main(String[] args) {
        Scanner Scan = new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int num = Scan.nextInt();
        String str = makeachoice(num);
        print(str);
    }
    public static String makeachoice(int num){
        String str ;
        if(num<0){
            str= "负数";
        }
        else if(num==0) {
            str="0";
        }
        else if (num>0) {
            str="正数";
        }
        else {
            str="请重新输入！";
        }
        return str ;
    }
    public static void print(String str){
        System.out.println("你输入的数是"+str+"！");
    }
}
